<div id="divCart">
<h4>Sepetiniz</h4>
<div id="mycart">
<table id="cartTable">
<tr><th colspan="2">Ürün</th><th>Fiyat</th><th>Kaldır</th></tr>
<?php 
if($cart):
	foreach ($cart['products'] as $product):?>
		<tr>
		<td><img class="sepetresim" src="/bookstore/img/<?php echo $product['Product']['image'];?>" /></td>
		<td><?php echo $product['Product']['name'];?> - <?php echo $product['Product']['qty'];?> adet</td>
		<td><?php echo $product['Product']['allprice']*1;?> TL</td>
		<td><img src="/bookstore/img/media/remove.png" onclick="removeFromCart(<?php echo $product['Product']['id']?>);" class="removebutton"/></td>
		</tr>
	<?php endforeach; ?>
	<tr><th colspan="2">Toplam</th><th><?php echo $cart['sum'];?> TL</th><th><img src="/bookstore/img/media/trash.png" onclick="emptyCart();" class="removebutton"/></th></tr>
<?php endif;?>
</table>
</div>
<a href="/bookstore/products/mycart" class="button"><span class="rightarrow icon"></span>Sepete Git</a>
</div>